package com.wenjiang.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wenjiang.common.dto.PageParam;
import com.wenjiang.common.lang.Result;
import com.wenjiang.entity.MallCarousel;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface MallCarouselService extends IService<MallCarousel> {

    //获取轮播图
    public Result getCarousels();

    // 分页获取轮播图
    public Result getPageCarousels(PageParam pageParam);


    // 修改轮播图状态
    public  Result changeStatus(int carouselId,int status);

    // 修改轮播图
    public Result updateCarousel(MallCarousel mallCarousel);

    // 添加轮播图
    public Result addCarousel(MallCarousel mallCarousel, MultipartFile file) ;

    // 删除轮播图
    public  Result delCarousel(Integer carouselId);
}
